|
|
|
|
|
|
|
Q What are the five functions available from the Common Dialog control? |
|
|
|
|
|
|
|
|
A The Common Dialog control lets you use the default Windows dialog boxes: |
|
|
|
|
|
|
|
|
|
Open/Save As dialog boxes |
|
|
|
| | | | | |
|
|
|
|
|
|
Q When using the Open/Save As dialog boxes, is the file selected actually opened by the Common Dialog control? |
|
|
|
|
|
|
|
|
A No, the Common Dialog control doesn't perform any actual processing. |
|
|
|
|
|
|
|
|
Q How does the Dialog Automation Object vary from the Common Dialog control? |
|
|
|
|
|
|
|
|
A The Dialog Automation Object performs the same functions as the Common Dialog control without you having to add a custom control to each form that needs to use these functions. |
|
|
|
|
|
|
|
|
The Workshop provides quiz questions to help solidify your understanding of the material covered, as well as exercises to provide you with experience in using what you've learned. Try to understand the quiz and exercise answers before continuing on to the next day's lesson. Answers are provided in Appendix A, Answers to Exercises. |
|
|
|
|
|
|
|
|
1. What's the one function that the Dialog Automation Object doesn't perform? |
|
|
|
|
|
|
|
|
2. What's the difference between the help functions and the other Common Dialog functions that you can use? |
|
|
|
|
|
|
|
|
3. When using the Common Dialog control to prompt users for a file to open, what are the properties you need to set? |
|
|
|
|
|
|
|
|
1. Use the Common Dialog control to create an application that asks users for a file to open, and then open that file in Notepad. |
|
|
|
|
|
|
|
|
2. Change the preceding application to use the Dialog Automation Object. |
|
|
|
|
|